import { message } from 'antd';

export const isSuccess = (res) => {
    if (res.code == 0) return true;
    message.error(res.msg);
    return false
}